package ar.edu.itba.pod.legajo48240.balance;

import java.util.Comparator;

public class CompareRank implements Comparator<NodeRank> {

	@Override
	public int compare(NodeRank o1, NodeRank o2) {
		if( o2.agents() == o1.agents()){
			return 0;
		}else if (o2.agents() > o1.agents()){
			return -1;
		}
		return 1;
	}
}
